'''
def func_out(func):
    print('外层启动')
    def func_in(*args):
        print('执行前')
        func(*args)
        print('执行后')
        return func(*args)
    return func_in

@func_out
def main(*args):
    print(args)
    return 'python'

data = main(1, 2)
print(data)
'''

'''
def fbnq(num):
    fbnq_list = [0, 1]
    for i in range(num - 2):
        fbnq_list.append(fbnq_list[-2] + fbnq_list[-1])
    return fbnq_list


print(fbnq(6))
'''

# def fbnq(num):
#     a, b, c = 0, 1, 0
#     while c < num:
#         yield a
#         a, b = b, a + b
#         c += 1
#
# for i in fbnq(6):
#     print(i)

''' 简单递归
def demo(num):
    if num == 1:
        return 1
    result = demo(num-1)
    return result + num

print(demo(100))
'''